package br.com.lumis.saas.service.consumerclient.control;

import java.io.IOException;

import lumis.doui.control.Control;
import lumis.portal.PortalException;

public class IframeControl extends Control{

	@Override
	public void setRenderData() throws PortalException {
		String scriptNodeText = "<div id='iframeTest' style='display:none'><iframe id='iframe' src='saas/service/consumeclient/ConsoleController.jsp' style=\"background:#000;width:610px;height:300px;border: 1px solid #000000; border-collapse: collapse; \" frameborder=\"0\"  scrolling=\"yes\"  ALLOWTRANSPARENCY=\"true\" ></iframe> </div>";
		
		try {
			douiContext.getRenderResponse().getBeforeWriter().print(
					scriptNodeText, "iframe");
		} catch (IOException e) {
			new PortalException(e.getMessage(), e);
		}
	}
}
